using System;

namespace T0065
{
    public class Pistol:Weapon
    {
        private string _starLevel;
        public Pistol(string name, int magazineCapacity, int ammoNumInMc, float attackDis, float fireRate, int totalAmmoNum,string star = "☆") : base(name, magazineCapacity, ammoNumInMc, attackDis, fireRate, totalAmmoNum)
        {
            _starLevel = star;
        }

        public override void Fire()
        {
            base.Fire();//Use base class function
            Console.WriteLine("Trigger knocked! A bullet shot out from the pistol!");
            PrintWeaponStatus();
        }

        public override void PrintWeaponStatus()
        {
            base.PrintWeaponStatus();
            Console.WriteLine("Level {0}:",_starLevel);
            Console.WriteLine("------{END}------");
        }
    }
}